{include file="entete.tpl"}
{literal}
<script type="text/javascript" src= "/PariGest/pages/js/prototype.js"></script>
<script type="text/javascript" src= "/PariGest/pages/js/outilsAjax.js"></script>
<script type="text/javascript">
function init()
{
  /*ajouteCtrl({input:{/literal}$("Date"){literal}, ctrl: "DATE", oblig: true, message: "Date"});
  ajouteCtrl({input:{/literal}$("Montant"){literal}, ctrl: "FLOAT", oblig: true, message: "Montant"});*/
}

function afficheCommentaire(img, input)
{  
  top.afficheModal();
  top.$('popCommentaire').style.zIndex = "9000";
  top.$('popCommentaire').show();
  top.$('commentaire').value=$F(input);  
  top.$('returnVal').value=input;
  top.$('imgComment').value=img.name;
}
</script>
{/literal}
<html>
  <body onload="init();">
    <form action="operation_compte.php" method="post">
    
      {include file="IncSelectCompte.tpl"}
        
      <input type="hidden" name="Action" id="Action" value="">
      <table border=0 cellspacing=5 cellpadding=0 class=lib>	
        <tr>
          <td>le&nbsp;<input type="text" name="Date" id="Date" size="10" onChange="verifCtrl(this)" value="{$DateDuJour|date_format:"%d/%m/%Y"}"></td>
          <td>
            {html_options name=LstTypeOp options=$LstTypeOp selected=$LstTypeOpSelected}
          </td>
          <td><input type="text" size=6 name="Montant" id="Montant" value="Montant" onChange="verifCtrl(this)" onFocus="if(this.value == 'Montant') this.value = ''" onBlur="if(this.value == '') this.value = 'Montant'"></td>
          <td><input type="text" style="width:100%" name="Libelle" id="Libelle" value="Libelle" onChange="verifCtrl(this)" onFocus="if(this.value == 'Libelle') this.value = ''" onBlur="if(this.value == '') this.value = 'Libelle'"></td>
          <td>
              {assign var=imgComment value='comment_vide'}
              <input type=hidden id='Commentaire' name='Commentaire' value=''>
              <img style='vertical-align:middle;' src='/PariGest/pages/ihm/boutons/comment_vide0.png' class='cursmain' title='Commentaire' 
                   onmouseover=rollBtn(this,'comment_vide1') onmouseout= rollBtn(this,'comment_vide0') 
                   id='btn_Commentaire' name='btn_Commentaire' onclick="afficheCommentaire(this, 'Commentaire')">
          </td>
        </tr>
      </table>
    </form>
  </body>
</html>